/*
 *  LogStore : store.h
 *                              Hyojun Kim
 */

#ifndef __STORE_H__
#define __STORE_H__

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>

#ifdef __cplusplus
extern "C" 
{
#endif 

#ifndef __types
#define __types
typedef unsigned char byte;
#endif

void store_init(void);
int  store_put(unsigned length, byte* data, unsigned* key);
int  store_get(unsigned key, unsigned bsize, byte* buffer, unsigned* length);
int  store_remove(unsigned key);
void store_free(void);

#ifdef __cplusplus
}
#endif 

#endif /* __STORE_H__ */
